/* 附件信息 */
function getFujianzil(){
  clearFujians();
  
  showAttentment(busiId, null, null, null, function(){
	  hideLiuShuis();
  });
  
  showAttentment(queryCreditApplyId, null, null, null, function(){
     hidezhengMings();
  });
}

function clearFujians(){
	$('.zx-addimg ul').html('');
}


//展示附件
function hideLiuShuis(){	
	//银行流水
	var peiou_liushui = $('#PEI_OU_YIN_HANG_LIU_SHUI').find('li');
	if(peiou_liushui && peiou_liushui.length == 0) {
		hideLiuShuiFujian('peiou');
	}
	
	var danbaoren1_liushui = $('#DAN_BAO_REN_YIN_HANG_LIU_SHUI_1').find('li');
	if(danbaoren1_liushui && danbaoren1_liushui.length == 0) {
		hideLiuShuiFujian('danbaoren1');
	}
	
	var danbaoren2_liushui = $('#DAN_BAO_REN_YIN_HANG_LIU_SHUI_2').find('li');
	if(danbaoren2_liushui && danbaoren2_liushui.length == 0) {
		hideLiuShuiFujian('danbaoren2');
	}
	
	var danbaoren3_liushui = $('#DAN_BAO_REN_YIN_HANG_LIU_SHUI_3').find('li');
	if(danbaoren3_liushui && danbaoren3_liushui.length == 0) {
		hideLiuShuiFujian('danbaoren3');
	}
	
	var danbaoren4_liushui = $('#DAN_BAO_REN_YIN_HANG_LIU_SHUI_4').find('li');
	if(danbaoren4_liushui && danbaoren4_liushui.length == 0) {
		hideLiuShuiFujian('danbaoren4');
	}
}	

function hidezhengMings(){		
	//身份证明
	var peiou = $('#PEI_OU_SHEN_FEN_ZHENG_MING').find('li');
	
	if(peiou && peiou.length == 0) {
		hidezm('peiou');
	}

	var danbaoren1 = $('#DAN_BAO_REN_SHEN_FEN_ZHENG_MING_1').find('li');
	if(danbaoren1 && danbaoren1.length == 0) {
		hidezm('danbaoren1');
	}
	
	var danbaoren2 = $('#DAN_BAO_REN_SHEN_FEN_ZHENG_MING_2').find('li');
	if(danbaoren2 && danbaoren2.length == 0) {
		hidezm('danbaoren2');
	}
	
	var danbaoren3 = $('#DAN_BAO_REN_SHEN_FEN_ZHENG_MING_3').find('li');
	if(danbaoren3 && danbaoren3.length == 0) {
		hidezm('danbaoren3');
	}
	
	var danbaoren4 = $('#DAN_BAO_REN_SHEN_FEN_ZHENG_MING_4').find('li');
	if(danbaoren4 && danbaoren4.length == 0) {
		hidezm('danbaoren4');
	}
}

function hidezm(target){
	$('.' + target + '_attachmentfj').hide();
}

function hideLiuShuiFujian(target){
	$('.' + target + '_attachment_liushui').hide();
}
